package Abstract_factory;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 20-10-13
 * Time: 18:02
 * To change this template use File | Settings | File Templates.
 */
public class Zombie extends Monster {

    MonsterFactory monsterFactory;

    public Zombie(MonsterFactory monsterFactory) {
        this.monsterFactory = monsterFactory;
    }

    @Override
    void makeMonster() {

        System.out.println("Making a zombie");

        attackPower = monsterFactory.assignAttackPower();
        attackRange = monsterFactory.assignAttackRange();
    }
}
